<?php

namespace app\studentLayer\controller;


use app\student\model\classesModel;
use think\Controller;
use think\Db;

class TeacherBase extends TeacherVerify
{

    public function Teacher_Base()
    {
        $Teacher = Db::table('s_teacher')->alias('t')->field('t.*,group_concat(c.name) as c_name')
            ->leftJoin('s_teaching tc', 't.id=tc.t_id')
            ->leftJoin('s_course c', 'c.id = tc.c_id')
            ->where(['t.id' => session('Teacher.id'),
                't.name' => session('Teacher.name'),
                't.password' => session('Teacher.password')])
            ->group('t.id')
            ->select();
        $Teacher = $Teacher[0];
        $this->assign('Teacher',$Teacher);
        return $this->fetch('/LoginView/Select_Teacher_Login');
    }



}